//package com.xhj.springbootproject.rest.login;
//
//import com.xhj.springbootproject.constant.object.BasicUserVO;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RequestParam;
//
//import java.lang.reflect.Method;
//
///**
// * @author ：Xionghaijun
// * @date ：Created in 2019/8/15 10:59 AM
// * @description：
// */
//@Controller
//public class LoginController {
//
//    @RequestMapping(value = "/user/login", method = RequestMethod.POST)
//    public String login(@RequestParam("userName") String userName,
//                            @RequestParam("password") String password) {
//        return "index";
//    }
//
//    public static void main(String[] args) {
//        Object obj = null;
////        try {
////            obj = (BasicUserVO) Class.forName("com.xhj.springbootproject.constant.object.BasicUserVO").getConstructor(Integer.class, String.class, String.class).newInstance(1, "test", "test");
////        } catch (Exception e) {
////            e.printStackTrace();
////        }
//        BasicUserVO basicUserVO = new BasicUserVO();
//        try {
//            Method method = BasicUserVO.class.getMethod("print", String.class, String.class);
//            obj = method.invoke(basicUserVO,"test1", "test2");
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//        System.out.println(obj.toString());
//    }
//}
